home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utildsk / scslst12.lha / scsi_list / source / Scsi_Locale.h < prev    next >
C/C++ Source or Header  |  1996-04-12  |  6KB  |  214 lines

  1. #ifndef SCSI_LOCALE_H
  2. #define SCSI_LOCALE_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_Vendor 0
  36. #define MSG_Product 1
  37. #define MSG_Revision 2
  38. #define MSG_Device_Type 3
  39. #define MSG_Standard 4
  40. #define MSG_Removable 5
  41. #define MSG_Unable_to_Open_icon 6
  42. #define MSG_Unable_to_Open_MUI 7
  43. #define MSG_Unable_to_Create_Cust_Class 8
  44. #define MSG_Device 9
  45. #define MSG_Failed_to_Create_App 10
  46. #define MSG_Unit 11
  47. #define MSG_Unable_to_Allocate_Memory 12
  48. #define MSG_Unable_to_Create_Mess_Port 13
  49. #define MSG_Unable_to_Create_StandardIO 14
  50. #define MSG_Not_Used 15
  51. #define MSG_Rel_Addr 16
  52. #define MSG_16_Wide 17
  53. #define MSG_32_Wide 18
  54.  
  55. #endif /* CATCOMP_NUMBERS */
  56.  
  57.  
  58. /****************************************************************************/
  59.  
  60.  
  61. #ifdef CATCOMP_STRINGS
  62.  
  63. #define MSG_Vendor_STR "Vendor"
  64. #define MSG_Product_STR "Product"
  65. #define MSG_Revision_STR "Revision"
  66. #define MSG_Device_Type_STR "Device Type"
  67. #define MSG_Standard_STR "Standard"
  68. #define MSG_Removable_STR "Removable"
  69. #define MSG_Unable_to_Open_icon_STR "Unable to open icon.library"
  70. #define MSG_Unable_to_Open_MUI_STR "Unable to open muimaster.library"
  71. #define MSG_Unable_to_Create_Cust_Class_STR "Unable to Create Custom Classes"
  72. #define MSG_Device_STR "Device"
  73. #define MSG_Failed_to_Create_App_STR "Failed to create application"
  74. #define MSG_Unit_STR "Unit"
  75. #define MSG_Unable_to_Allocate_Memory_STR "Unable to Allocate Memory"
  76. #define MSG_Unable_to_Create_Mess_Port_STR "Unable to Create Message Port"
  77. #define MSG_Unable_to_Create_StandardIO_STR "Unable to Create Standard IO"
  78. #define MSG_Not_Used_STR "Not Used"
  79. #define MSG_Rel_Addr_STR "Relative Addressing"
  80. #define MSG_16_Wide_STR "16 Bit Wide Data Transfer"
  81. #define MSG_32_Wide_STR "32 Bit Wide Data Transfer"
  82.  
  83. #endif /* CATCOMP_STRINGS */
  84.  
  85.  
  86. /****************************************************************************/
  87.  
  88.  
  89. #ifdef CATCOMP_ARRAY
  90.  
  91. struct CatCompArrayType
  92. {
  93.     LONG   cca_ID;
  94.     STRPTR cca_Str;
  95. };
  96.  
  97. static const struct CatCompArrayType CatCompArray[] =
  98. {
  99.     {MSG_Vendor,(STRPTR)MSG_Vendor_STR},
  100.     {MSG_Product,(STRPTR)MSG_Product_STR},
  101.     {MSG_Revision,(STRPTR)MSG_Revision_STR},
  102.     {MSG_Device_Type,(STRPTR)MSG_Device_Type_STR},
  103.     {MSG_Standard,(STRPTR)MSG_Standard_STR},
  104.     {MSG_Removable,(STRPTR)MSG_Removable_STR},
  105.     {MSG_Unable_to_Open_icon,(STRPTR)MSG_Unable_to_Open_icon_STR},
  106.     {MSG_Unable_to_Open_MUI,(STRPTR)MSG_Unable_to_Open_MUI_STR},
  107.     {MSG_Unable_to_Create_Cust_Class,(STRPTR)MSG_Unable_to_Create_Cust_Class_STR},
  108.     {MSG_Device,(STRPTR)MSG_Device_STR},
  109.     {MSG_Failed_to_Create_App,(STRPTR)MSG_Failed_to_Create_App_STR},
  110.     {MSG_Unit,(STRPTR)MSG_Unit_STR},
  111.     {MSG_Unable_to_Allocate_Memory,(STRPTR)MSG_Unable_to_Allocate_Memory_STR},
  112.     {MSG_Unable_to_Create_Mess_Port,(STRPTR)MSG_Unable_to_Create_Mess_Port_STR},
  113.     {MSG_Unable_to_Create_StandardIO,(STRPTR)MSG_Unable_to_Create_StandardIO_STR},
  114.     {MSG_Not_Used,(STRPTR)MSG_Not_Used_STR},
  115.     {MSG_Rel_Addr,(STRPTR)MSG_Rel_Addr_STR},
  116.     {MSG_16_Wide,(STRPTR)MSG_16_Wide_STR},
  117.     {MSG_32_Wide,(STRPTR)MSG_32_Wide_STR},
  118. };
  119.  
  120. #endif /* CATCOMP_ARRAY */
  121.  
  122.  
  123. /****************************************************************************/
  124.  
  125.  
  126. #ifdef CATCOMP_BLOCK
  127.  
  128. static const char CatCompBlock[] =
  129. {
  130.     "\x00\x00\x00\x00\x00\x08"
  131.     MSG_Vendor_STR "\x00\x00"
  132.     "\x00\x00\x00\x01\x00\x08"
  133.     MSG_Product_STR "\x00"
  134.     "\x00\x00\x00\x02\x00\x0A"
  135.     MSG_Revision_STR "\x00\x00"
  136.     "\x00\x00\x00\x03\x00\x0C"
  137.     MSG_Device_Type_STR "\x00"
  138.     "\x00\x00\x00\x04\x00\x0A"
  139.     MSG_Standard_STR "\x00\x00"
  140.     "\x00\x00\x00\x05\x00\x0A"
  141.     MSG_Removable_STR "\x00"
  142.     "\x00\x00\x00\x06\x00\x1C"
  143.     MSG_Unable_to_Open_icon_STR "\x00"
  144.     "\x00\x00\x00\x07\x00\x22"
  145.     MSG_Unable_to_Open_MUI_STR "\x00\x00"
  146.     "\x00\x00\x00\x08\x00\x20"
  147.     MSG_Unable_to_Create_Cust_Class_STR "\x00"
  148.     "\x00\x00\x00\x09\x00\x08"
  149.     MSG_Device_STR "\x00\x00"
  150.     "\x00\x00\x00\x0A\x00\x1E"
  151.     MSG_Failed_to_Create_App_STR "\x00\x00"
  152.     "\x00\x00\x00\x0B\x00\x06"
  153.     MSG_Unit_STR "\x00\x00"
  154.     "\x00\x00\x00\x0C\x00\x1A"
  155.     MSG_Unable_to_Allocate_Memory_STR "\x00"
  156.     "\x00\x00\x00\x0D\x00\x1E"
  157.     MSG_Unable_to_Create_Mess_Port_STR "\x00"
  158.     "\x00\x00\x00\x0E\x00\x1E"
  159.     MSG_Unable_to_Create_StandardIO_STR "\x00\x00"
  160.     "\x00\x00\x00\x0F\x00\x0A"
  161.     MSG_Not_Used_STR "\x00\x00"
  162.     "\x00\x00\x00\x10\x00\x14"
  163.     MSG_Rel_Addr_STR "\x00"
  164.     "\x00\x00\x00\x11\x00\x1A"
  165.     MSG_16_Wide_STR "\x00"
  166.     "\x00\x00\x00\x12\x00\x1A"
  167.     MSG_32_Wide_STR "\x00"
  168. };
  169.  
  170. #endif /* CATCOMP_BLOCK */
  171.  
  172.  
  173. /****************************************************************************/
  174.  
  175.  
  176. struct LocaleInfo
  177. {
  178.     APTR li_LocaleBase;
  179.     APTR li_Catalog;
  180. };
  181.  
  182.  
  183. #ifdef CATCOMP_CODE
  184.  
  185. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  186. {
  187. LONG   *l;
  188. UWORD  *w;
  189. STRPTR  builtIn;
  190.  
  191.     l = (LONG *)CatCompBlock;
  192.  
  193.     while (*l != stringNum)
  194.     {
  195.         w = (UWORD *)((ULONG)l + 4);
  196.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  197.     }
  198.     builtIn = (STRPTR)((ULONG)l + 6);
  199.     
  200.     if (LocaleBase)
  201.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  202.  
  203.     return(builtIn);
  204. }
  205.  
  206.  
  207. #endif /* CATCOMP_CODE */
  208.  
  209.  
  210. /****************************************************************************/
  211.  
  212.  
  213. #endif /* SCSI_LOCALE_H */
  214.